package com.sicau.controller;

import com.sicau.entity.Question;
import com.sicau.service.PaperService;

import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * Created by wzw on 2018/11/2
 */
@RestController
public class PaperController {
    @Autowired
    private PaperService paperService;
    @RequestMapping(value = "/paper_info", method = RequestMethod.GET)
    public JSONArray paperInfo(){
        return paperService.getProblem();
    }
}
